﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/group/GroupMasterPage.Master"
    AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Yonkly.Views.Group.Index" %>

<%@ Import Namespace="Yonkly.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript" src='<%=Page.ResolveClientUrl("~/content/scripts/group.js")%>'></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <%if (((GroupViewData)ViewData.Model).CanView())
      {%>
    <% Html.RenderPartial("~/views/group/GroupPostMessage.ascx");%>
    <% Html.RenderPartial("~/views/group/Messages.ascx");%>
    <%
        }
      else
      {%>
    <b>This is a private group and can only be viewed by members of the group.</b>
    <%} %>
</asp:Content>
